Defines a type responsible for generating a proposal state for a Monte-Carlo, Markov-Chain sampler.
Creates a new sample proposal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(inout) | :: | this |
The mcmc_proposal object. |
||
| class(mcmc_target), | intent(inout) | :: | tgt |
The mcmc_target object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | xc |
An N-element array containing the existing parameter estimates. |
|
| real(kind=real64), | intent(out), | dimension(:) | :: | xp |
An N-element array where the proposed parameters will be output. |
|
| real(kind=real64), | intent(in) | :: | vc |
The current variance (noise) term value. |
||
| real(kind=real64), | intent(out) | :: | vp |
The proposed variance (noise) value. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(in) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | idx |
Gets a value determining if the parameter distributions should be recentered about the last stored position upon sampling.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(in) | :: | this |
The mcmc_proposal object. |
True if recentering is to be allowed; else, false.
Gets the proposal scale multiplier.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | idx | |||
| real(kind=real64), | intent(in) | :: | val |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(inout) | :: | this | |||
| real(kind=real64), | intent(in), | dimension(:) | :: | arr |
Sets a value determining if the parameter distributions should be recentered about the last stored position upon sampling.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(inout) | :: | this |
The mcmc_proposal object. |
||
| logical, | intent(in) | :: | x |
True if recentering is to be allowed; else, false. |
Sets the proposal scale multiplier.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mcmc_proposal), | intent(inout) | :: | this | |||
| real(kind=real64), | intent(in) | :: | x |